<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查看球队</title>
    <link rel="stylesheet" href="/plugins/layui/css/layui.css" media="all">
    <link rel="stylesheet" type="text/css" href="/css/city-picker.css">
</head>
<body class="layui -layout-body">
<div class="layui-layout layui-layout-admin layui-bg-blue">
    <!-- 头部区域 -->
    <div th:replace="index::topbar"></div>

    <!-- 左侧导航区域 -->
    <div th:replace="index::sidebar"></div>

    <!-- 底部固定区域 -->
    <div th:replace="index::bottombar"></div>

    <!-- 内容主体区域 -->
    <div class="layui-body">
        <form class="layui-form" > <!-- 提示：如果你不想用form，你可以换成div等任何一个普通元素 -->
            <br>
            <div class="layui-form-item">
                <label class="layui-form-label">球队ID:</label>
                <label class="layui-form-label-col" th:text="${team.id}">1</label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">球队全称:</label>
                <label class="layui-form-label-col" th:text="${team.teamName}">1</label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">球队简称:</label>
                <label class="layui-form-label-col" th:text="${team.shorterName}">1</label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">队长姓名:</label>
                <label class="layui-form-label-col" th:text="${team.captainName}">1</label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">队长联系方式:</label>
                <label class="layui-form-label-col" th:text="${team.captainTel}">1</label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">球队主场:</label>
                <label class="layui-form-label-col" th:text="${team.home}">1</label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">所属联赛:</label>
                <label class="layui-form-label-col" th:text="${team.league}">1</label>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">所在城市:</label>
                <label class="layui-form-label-col" th:text="${team.city}">1</label>
            </div>

            <div  class="layui-form-item">
                <div class="layui-input-block">
                    <a th:href="@{/teams}" class="layui-btn layui-btn-normal" lay-filter="*">完成</a>
                </div>
            </div>
        </form>
    </div>
</div>
</body>

<script src="/plugins/layui/layui.js"></script>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/citydata.min.js"></script>
<script type="text/javascript" src="/js/cityPicker-2.0.0.js"></script>

<!-- 修改密码弹窗 -->
<script type="text/html" id="pswModel1">
    <div id="pswModel" th:replace="index::changePsw">
    </div>
</script>

<script>
    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;

    });

    //城市选择器
    var selector=$('#city-picker-search').cityPicker({
        dataJson:cityData,
        renderMode:true,
        search:true,
        autoSelected:true,
        keyboard:true,
        level:2,
        onChoiceEnd:function () {
            console.log(this.values)
        }
    });

    //侧边导航栏展开并选中添加球员选项
    $("#teamManage").addClass("layui-nav-itemed");
    $("#addTeam").addClass("layui-this");

    //显示个人信息
    function info() {
        layui.use(['layer'], function(){
            var layer = layui.layer;
            layer.open({
                type:1,
                title:'个人信息',
                area:'350px',
                offset:'120px',
                content:'<ul style="padding:25px 35px 8px 35px;">' +
                '<li>用户名：[[${session.loginUser}]]</li>'+
                '<li>手机号：13657936306</li>'+
                '</ul>',
                btn:['确定'],
                btnAlign:'center'
            });
        });
    }

    //修改密码
    function changePassword() {
        layui.use(['layer'],function () {
            var layer=layui.layer;
            layer.open({
                type: 1,
                title: "修改密码",
                area: '400px',
                offset: '120px',
                content: $("#pswModel1").html()
            });
        })
    }
</script>

</html>



